<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">

</head>
<body >
<div align="center">
    <?php if(is_array($power)): $i = 0; $__LIST__ = $power;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i; if(($vo["user"]) == "1"): ?><a href="<?php echo U('Home/User/index');?>">用户管理</a><?php endif; ?>
        <?php if(($vo["password"]) == "1"): ?><a href="<?php echo U('Home/Index/password');?>">修改密码</a><?php endif; ?>
        <?php if(($vo["operate"]) == "1"): ?><a href="<?php echo U('Home/Operate/index');?>">操作日志</a><?php endif; ?>
        <?php if(($vo["admin"]) == "1"): ?><a href="<?php echo U('Home/Admin/manage');?>">管理员管理</a><?php endif; ?>
        <?php if(($vo["oil"]) == "1"): ?><a href="<?php echo U('Home/Oil/index');?>">油品类型管理</a><?php endif; ?>
        <?php if(($vo["list"]) == "1"): ?><a href="<?php echo U('Home/List/index');?>" >车辆队列管理</a><?php endif; ?>
        <?php if(($vo["power"]) == "1"): ?><a href="<?php echo U('Home/Power/index');?>">权限管理</a><?php endif; ?>
        <?php if(($vo["announce"]) == "1"): ?><a href="<?php echo U('Home/Announce/index');?>">公告内容管理</a><?php endif; endforeach; endif; else: echo "" ;endif; ?>

</div>
<div align="center">
    <h2 >后台中心</h2>
    <a href="<?php echo U('Home/index/index');?>">退出</a>
    <a href="<?php echo U('Home/admin/index');?>">首页</a>
</div>
<hr />
</body>
</html>


<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>增加角色</title>
</head>
<body>
<div  align="center">
    角色名：<input id="name" placeholder="输入角色名">
    <p>选择权限</p>
</div >
<div align="center">
    <input type="checkbox"  value="1" id="user" /> 用户管理
    <input type="checkbox"  value="1" id="password"/> 修改密码
    <input type="checkbox"  value="1" id="operate"/> 操作日志
</div>
<div align="center">
    <input type="checkbox"  value="1" id="admin"/> 管理员管理
    <input type="checkbox"  value="1" id="oil"/> 油品类型管理
    <input type="checkbox"  value="1" id="list"/> 车辆队列管理
</div>
<div align="center">
    <input type="checkbox"  value="1" id="power"/> 权限管理
    <input type="checkbox"  value="1" id="announce"/> 公告内容管理
</div>
<div align="center">
    <button id="submit">确定</button>
</div>

</body>
<script src="/hongdi/db_carorder_system/tp/Public/jquery-3.3.1/jquery-3.3.1.js"></script>
<script src="/hongdi/db_carorder_system/tp/Public/js/dialog.js"></script>
<script src="/hongdi/db_carorder_system/tp/Public/dialog/layer.js"></script>
<script src="/hongdi/db_carorder_system/tp/Public/js/power/add.js"></script>
<script src="/hongdi/db_carorder_system/tp/Public/layui-v2.2.5/layui/layui.js" charset="utf-8"></script>
</html>